package com.qiyu.tech.tcc.starter.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 商品信息
 *
 * @author linhao
 * @date created in 8:04 下午 2020/11/3
 */
@TableName(value = "t_goods")
public class Goods {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名字
     */
    private String goodsName;

    /**
     * 库存数目
     */
    private Integer stock;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }
}
